package com.ryskoo.catering.orderaddress.domain;

import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 订单收货地址
 * @author BeHappy
 */
@Entity
@Table(name = "cater_order_address")
public class OrderAddressPO extends BasicPO {

    private static final long serialVersionUID = -5768641757468885576L;
    /**
     * orderUuid
     */
    @Column(name = "order_uuid", columnDefinition = "char", length = 32)
    private String orderUuid;

    /**
     * 收货人
     */
    @Column(name = "name", columnDefinition = "varchar", length = 20)
    private String name;

    /**
     * 手机号
     */
    @Column(name = "mobile", columnDefinition = "char", length = 11)
    private String mobile;

    /**
     * 省uuid
     */
    @Column(name = "province_uuid", columnDefinition = "char", length = 32)
    private String provinceUuid;

    /**
     * 市uuid
     */
    @Column(name = "city_uuid", columnDefinition = "char", length = 32)
    private String cityUuid;

    /**
     * 区uuid
     */
    @Column(name = "region_uuid", columnDefinition = "char", length = 32)
    private String regionUuid;

    /**
     * 街道uuid
     */
    @Column(name = "street_uuid", columnDefinition = "char", length = 32)
    private String streetUuid;

    /**
     * 详细地址
     */
    @Column(name = "address", columnDefinition = "varchar", length = 100)
    private String address;


    /**
     * 省
     */
    @Transient
    private String province;

    /**
     * 市
     */
    @Transient
    private String city;

    /**
     * 区
     */
    @Transient
    private String region;

    /**
     * 街道
     */
    @Transient
    private String street;

    public String getOrderUuid() {
        return orderUuid;
    }

    public void setOrderUuid(String orderUuid) {
        this.orderUuid = orderUuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getProvinceUuid() {
        return provinceUuid;
    }

    public void setProvinceUuid(String provinceUuid) {
        this.provinceUuid = provinceUuid;
    }

    public String getCityUuid() {
        return cityUuid;
    }

    public void setCityUuid(String cityUuid) {
        this.cityUuid = cityUuid;
    }

    public String getRegionUuid() {
        return regionUuid;
    }

    public void setRegionUuid(String regionUuid) {
        this.regionUuid = regionUuid;
    }

    public String getStreetUuid() {
        return streetUuid;
    }

    public void setStreetUuid(String streetUuid) {
        this.streetUuid = streetUuid;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    @Override
    public String toString() {
        return "OrderAddressPO{" +
                "orderUuid='" + orderUuid + '\'' +
                ", name='" + name + '\'' +
                ", mobile='" + mobile + '\'' +
                ", provinceUuid='" + provinceUuid + '\'' +
                ", cityUuid='" + cityUuid + '\'' +
                ", regionUuid='" + regionUuid + '\'' +
                ", streetUuid='" + streetUuid + '\'' +
                ", address='" + address + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", region='" + region + '\'' +
                ", street='" + street + '\'' +
                '}';
    }
}
